import { Router } from 'express';
import * as controller from './controller';

const router = Router();

router.get('/list', controller.getDictionaries);
router.get('/type/:type', controller.getDictionaryByType);
router.get('/types', controller.getDictionaryTypes);
router.get('/:id', controller.getDictionaryById);
router.post('/', controller.createDictionary);
router.put('/:id', controller.updateDictionary);
router.delete('/:id', controller.deleteDictionary);

export default router; 